//package com.ytjj.qmyx.data.config;
//
//import com.ytjj.common.constants.QueueConstants;
//import org.springframework.amqp.core.Queue;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@ConditionalOnProperty(prefix = "spring.rabbitmq", name = "enable", matchIfMissing = false)
//public class AmqpInitConfig {
//    @Bean
//    public Queue productQueue(){
//        return new Queue(QueueConstants.PRODUCT_STATISTICS_QUEUE,true);
//    }
//    @Bean
//    public Queue pageQueue() {
//        return new Queue(QueueConstants.PAGE_STATISTICS_QUEUE, true);
//    }
//}